﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Resources="clr-namespace:SharpTalk.Client.WpfApplication.Resources">

    
    <Style x:Key="ImageStyleDefault" TargetType="{x:Type Image}">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="Margin" Value="0"/>
    </Style>

    <Style x:Key="ImageExtraSmallStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageStyleDefault}">
        <Setter Property="Width" Value="8" />
        <Setter Property="Height" Value="8" />
        <Setter Property="MaxHeight" Value="8"/>
        <Setter Property="MaxWidth" Value="8"/>
        <Setter Property="Margin" Value="1"/>
    </Style>

    <Style x:Key="ImageSmallStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageStyleDefault}" >
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
        <Setter Property="MaxHeight" Value="16"/>
        <Setter Property="MaxWidth" Value="16"/>
    </Style>

    <Style x:Key="ImageMediumStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageStyleDefault}" >
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="MaxHeight" Value="24"/>
        <Setter Property="MaxWidth" Value="24"/>
    </Style>

    <Style x:Key="ImageLargeStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageStyleDefault}">
        <Setter Property="Stretch" Value="None" />
        <Setter Property="MaxHeight" Value="48"/>
        <Setter Property="MaxWidth" Value="48"/>
        <Setter Property="Margin" Value="2"/>
    </Style>

    <Style x:Key="ImageSmallWithShadowStyle" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}">
        <Setter Property="Effect" Value="{StaticResource DropShadowEffectLight}"/>
    </Style>

    <Style x:Key="ImageMediumWithShadowStyle" BasedOn="{StaticResource ImageMediumStyle}" TargetType="{x:Type Image}">
        <Setter Property="Effect" Value="{StaticResource DropShadowEffectLight}"/>
    </Style>

    <Style x:Key="ImageLargeWithShadowStyle" BasedOn="{StaticResource ImageLargeStyle}" TargetType="{x:Type Image}">
        <Setter Property="Effect" Value="{StaticResource DropShadowEffectLight}"/>
    </Style>

    <Style x:Key="ImageStyleChekSpelling" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/CheckSpelling_16.png"/>
        <Setter Property="Stretch" Value="Fill"/>
    </Style>
    
    <Style x:Key="ImageStyleContact" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/contact_24.png"/>
    </Style>
    
    <Style x:Key="ImageStyleChatRoomEdit" BasedOn="{StaticResource ImageSmallStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Width" Value="10"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/edit_8.png"/>
    </Style>
    
    <Style x:Key="ImageStylePassword" BasedOn="{StaticResource ImageSmallStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/keys_16.png"/>
    </Style>

    <Style x:Key="ImageStyleClearPassword" BasedOn="{StaticResource ImageSmallStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/delete_16.png"/>
    </Style>

    <Style x:Key="ImageStyleAlert" BasedOn="{StaticResource ImageLargeWithShadowStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/alert_48.png"/>
    </Style>

    <Style x:Key="ImageStyleInfo" BasedOn="{StaticResource ImageLargeWithShadowStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/info_48.png"/>
    </Style>

    <Style x:Key="ImageStyleQuestion" BasedOn="{StaticResource ImageLargeWithShadowStyle}"  TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/question_48.png"/>
    </Style>

    <Style x:Key="ImageChatRoomSearch" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chatroom_search_16.png"/>
    </Style>

    <Style x:Key="ImageSearch" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/search_16.png"/>
    </Style>
    
    <Style x:Key="ImageJoin" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_join_16.png"/>
    </Style>

    <Style x:Key="ImageMyChatrooms" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/my_chatrooms_16.png"/>
    </Style>

    <Style x:Key="ImageLogonStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/logon_16.png"/>
    </Style>

    <Style x:Key="ImageLogoutStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/logout_bw_16.png"/>
    </Style>

    <Style x:Key="ImageSettingsStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/settings_16.png"/>
    </Style>

    <Style x:Key="ImageAboutStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/about_16.png"/>
    </Style>

    <Style x:Key="ImageExitStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/exit_16.png"/>
    </Style>

    <Style x:Key="ImageChatNewStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_new_16.png"/>
    </Style>

    <Style x:Key="ImageAddContactStyle" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/book_16.png"/>
    </Style>

    <Style x:Key="ImageInviteStyle" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/invite_16.png"/>
    </Style>

    <Style x:Key="ImageUserDetailsStyle" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/user_details_16.png"/>
    </Style>

    <Style x:Key="ImageChatroomPublic" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageSmallStyle}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_24.png"/>
    </Style>
    <Style x:Key="ImageChatroomPublicProtected" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageSmallStyle}" >
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_lock_24.png"/>
    </Style>
    <Style x:Key="ImageChatroomPrivate" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageSmallStyle}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_private_24.png"/>
    </Style>
    <Style x:Key="ImageChatroomPrivateProtected" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageSmallStyle}" >
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_private_lock_24.png"/>
    </Style>
    <Style x:Key="ImageChatroomNotDefined" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageSmallStyle}" >
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_notdefined_24.png"/>
    </Style>
    
    <Style x:Key="ApplicationStateImageStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource ImageExtraSmallStyle}" >
        <Setter Property="Opacity" Value="0.3"/>
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/bullet_bw_8.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding}" Value="True">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/bullet_green_8.png" />
                <Setter Property="Opacity" Value="1"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ImageStyleUserStatus" BasedOn="{StaticResource ImageSmallWithShadowStyle}" TargetType="{x:Type Image}">
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/logout_bw_16.png"/>
        <Setter Property="ToolTip" Value="{Binding CurrentUser.Status, Converter={StaticResource UserStatusEnumConverter}}"/>
        <Setter Property="Margin" Value="1"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding CurrentUser.Status}" Value="Online">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/logon_16.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding CurrentUser.IsUpdating}" Value="True">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/user_updating_16.png"/>
                <Setter Property="ToolTip" Value="{x:Static Resources:Messages.label_updating}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ImageChatRoomTypeStyle" BasedOn="{StaticResource ImageSmallStyle}" TargetType="{x:Type Image}" >
        <Setter Property="Margin" Value="1"/>
        <Setter Property="ToolTip" Value="{Binding Chatroom.Type, Converter={StaticResource ChatRoomTypeEnumConverter}}"/>
        <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_notdefined_24.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Chatroom.Type}" Value="Public">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_24.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Chatroom.Type}" Value="Private">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_private_24.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Chatroom.Type}" Value="Public,Protected">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_lock_24.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Chatroom.Type}" Value="Private,Protected">
                <Setter Property="Source" Value="/SharpTalk.Client.WpfApplication;component/Images/chat_private_lock_24.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>